package com.sudichina.sudichina.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by mccccccmike on 2017/2/21.
 */

public class Reservation implements Parcelable {
    private String toZoneCode;
    private String fromZoneCode;
    private String laLoPosition;
    private String arriveTime;

    public String getToZoneCode() {
        return toZoneCode;
    }

    public void setToZoneCode(String toZoneCode) {
        this.toZoneCode = toZoneCode;
    }

    public String getFromZoneCode() {
        return fromZoneCode;
    }

    public void setFromZoneCode(String fromZoneCode) {
        this.fromZoneCode = fromZoneCode;
    }

    public String getLaLoPosition() {
        return laLoPosition;
    }

    public void setLaLoPosition(String laLoPosition) {
        this.laLoPosition = laLoPosition;
    }

    public String getArriveTime() {
        return arriveTime;
    }

    public void setArriveTime(String arriveTime) {
        this.arriveTime = arriveTime;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.toZoneCode);
        dest.writeString(this.fromZoneCode);
        dest.writeString(this.laLoPosition);
        dest.writeString(this.arriveTime);
    }

    public Reservation() {
    }

    protected Reservation(Parcel in) {
        this.toZoneCode = in.readString();
        this.fromZoneCode = in.readString();
        this.laLoPosition = in.readString();
        this.arriveTime = in.readString();
    }

    public static final Creator<Reservation> CREATOR = new Creator<Reservation>() {
        @Override
        public Reservation createFromParcel(Parcel source) {
            return new Reservation(source);
        }

        @Override
        public Reservation[] newArray(int size) {
            return new Reservation[size];
        }
    };
}
